package lab02.test20;

public class Test {
    public static void main(String[] args) {
        String result = "Hello123567";
        char tmp;
        int i;
        for (i = 0; i < result.length(); i++) {
            tmp = result.charAt(i);
            if (tmp >= '0' && tmp <= '9'){
                System.out.print(tmp);
            }

        }
    }
}